package com.mikhailenko.transportMVC.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "Element")
@XmlAccessorType(XmlAccessType.FIELD)
public class JsonEntity {

    @XmlElement(name = "ElementID")
    private int id;
    @XmlElement
    private String name;
    @XmlElement(name = "price", defaultValue = "100")
    private double price;
    
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        this.price = price;
    } 
}
